<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			{{name}}
			<ul>
				<li v-for="item,index in items" :data="index">
					{{index}}{{ item }}
				</li>
			</ul>
			<div>{{adc}}</div>
			<ul>
				<li v-for="value, key in object">
					{{key}} : {{ value }}
				</li>
			</ul>
		</div>
		<script type="text/javascript">
			var vm = new Vue({
				el: "#app",
				data: {
					name: "lisi",
					items: [
						"foo", "bar"
					],
					object: {
						title: 'How to do lists in Vue',
						author: 'Jane Doe',
						publishedAt: '2016-04-10'
					}
				},
				mounted() {
						this.name="zhangsan"; //居然是因为这个name变了   我把那么去掉就不变了
						this.adc="lgz"

						console.log(this)

				}
			});
		</script>
	</body>
</html>
